//
//  TopMenuSelectView.h
//  YYPopMenuView
//
//  Created by 蓓蕾 on 2021/8/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface TopMenuSelectView : UIView
/** item距离上方的距离 默认：10 */
@property (nonatomic, assign) CGFloat topMargin;
/** item距离下方的距离 默认：10 */
@property (nonatomic, assign) CGFloat bottomMargin;
/** item距离两侧的距离 默认：10 */
@property (nonatomic, assign) CGFloat leftMargin;
/** item与item之间的水平间隔 默认：10 */
@property (nonatomic, assign) CGFloat itemHorizontalMargin;
/** item与item之间的间隔垂直 默认：10 */
@property (nonatomic, assign) CGFloat itemVerticalMargin;
/** item的宽度，autoSize为NO时有效，默认：70 */
@property (nonatomic, assign) CGFloat itemWidth;
/** item的高度，默认：25 */
@property (nonatomic, assign) CGFloat itemHeight;
/** 每行排版多少个 默认：4 */
@property (nonatomic, assign) NSInteger itemLineCount;

@property (nonatomic, assign) BOOL showAnimation;

/** 是否自适应Item大小，默认NO */
@property (nonatomic, assign) BOOL autoSize;

-(void)selectShaiXuanItemWithLeftRow:(NSInteger)row withIndex:(NSInteger)index;

-(NSDictionary *)getSelectResult;

-(void)setLeftTitleArr:(NSArray * _Nonnull)leftTitleArr withRightContentArr:(NSArray * _Nonnull)rightContentArr;

@property (nonatomic, copy) void (^SelectShaiXuanItemBlock)(NSInteger leftRow, NSInteger index);

-(void)show;
-(void)dismiss:(void(^)(NSDictionary *resultDic))result;

@end

NS_ASSUME_NONNULL_END
